package com.qfedu.edu.constance;

/**
 * @author xiaobobo
 * @title: RedisConstance
 * @projectName cd-fy-2401-third-project-parent
 * @description: TODO
 * @date 2024/9/29  10:47
 */
public class RedisConstance {

    //这个是限流的前缀
    private static final String LIMIT_PREFIX = "limit:";

    //这个是黑名单的前缀
    private static final String BLACK_PREFIX = "black:";

    //这个集合的主要功能是请求记录的这个集合的名字
    private static final String REQ_RECORD_NAME = "req:record";

    //维护的心跳信号的集合的名字(Hash)
    private static final String HEART_INFO_HASH_NAME = "heart:info";

    //硬件数据保存的这个List集合的前缀
    private static final String HARDWARE_SAVE_LIST_PREFIX = "hardware:msg:save:";

    //队列消息消费的状态前缀
    private static final String QUEUE_INFO_CONSUMER_STATUS_PREFIX = "queue:msg:status:";

    public static String getQueueInfoConsumerStatusPrefix() {
        return QUEUE_INFO_CONSUMER_STATUS_PREFIX;
    }

    public static String getHardwareSaveListPrefix() {
        return HARDWARE_SAVE_LIST_PREFIX;
    }

    public static String getHeartInfoHashName() {
        return HEART_INFO_HASH_NAME;
    }

    public static String getReqRecordName() {
        return REQ_RECORD_NAME;
    }

    public static String getBlackPrefix() {
        return BLACK_PREFIX;
    }

    public static String getLimitPrefix() {
        return LIMIT_PREFIX;
    }
}
